<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>影城</title>
    <meta name="viewport" content="width=device-width, initial-scale=1,user-scalable=no">
    <link rel="stylesheet" type="text/css" href="bootstrap.min.css"/>
    <link rel="stylesheet" type="text/css" href="swiper.min.css"/>
    <script type="text/javascript" src="swiper3.42.min.js"></script>
    <script>
        (function (doc, win) {
            var docEl = doc.documentElement,
                    resizeEvt = 'orientationchange' in window ? 'orientationchange' : 'resize',
                    recalc = function () {
                        var clientWidth = docEl.clientWidth;
                        if (!clientWidth) return;
                        if(clientWidth>=640){
                            docEl.style.fontSize = '100px';
                        }else{
                            docEl.style.fontSize = 100 * (clientWidth / 640) + 'px';
                        }
                    };

            if (!doc.addEventListener) return;
            win.addEventListener(resizeEvt, recalc, false);
            doc.addEventListener('DOMContentLoaded', recalc, false);
        })(document, window);
    </script>
    <style>
        .swiper-container {
            width: 100%;
            padding:0.25rem 0 0;
            margin:0.25rem 0;

        }
        .swiper-slide {

            width: 100px;
            height: 120px;
        }
        @media screen and (min-width:410px) {
            .swiper-slide {

                width: 100px;
                height: 130px;
            }
        }

        @media screen and (max-width:361px) {
            .swiper-slide {

                width: 90px;
                height: 115px;
            }
        }
        @media screen and (max-width:323px) {
            .swiper-slide {

                width: 90px;
                height: 105px;
            }
        }
        .swiper-slide img{
            width:100%;height:100%
        }

    </style>
</head>
<body>

<div class="swiper-container" style="background:url(images/sm3.png)no-repeat;background-size: 100%;height:2.64rem">
    <div class="swiper-wrapper">
        <div class="swiper-slide" ><img src="images/sm4.png"/></div>
        <div class="swiper-slide" ><img src="images/sm4.png"/></div>
        <div class="swiper-slide" ><img src="images/sm4.png"/></div>
        <div class="swiper-slide" ><img src="images/sm4.png"/></div>
        <div class="swiper-slide" ><img src="images/sm4.png"/></div>
    </div>
</div>
<script>
    var swiper = new Swiper('.swiper-container', {
        effect: 'coverflow',
        grabCursor: true,
        centeredSlides: true,
        slidesPerView: 'auto',
        spaceBetween: 20,
        coverflow: {
            rotate: 10,
            stretch: 0,
            depth: 100,
            modifier:1.8,
            slideShadows : true
        }
    });
</script>

</body>
</html>